package top.shmly.universal.base.response;

import top.shmly.universal.base.common.Result;

public interface IResponseResult<T> {

    Result<T> ok();
    Result<T> ok(String message);
    Result<T> ok(ResponseCode resCode);
    Result<T> ok(ResponseCode resCode,T t);
    Result<T> ok(ResponseCode resCode,String message,T t);
    Result<T> ok(T t);

    Result<T> fail();
    Result<T> fail(String message);
    Result<T> fail(ResponseCode resCode);
    Result<T> fail(ResponseCode resCode,T t);
    Result<T> fail(ResponseCode resCode,String message,T t);
    Result<T> fail(T t);

}
